package com.qfedu.yuxiaoer.entity;

import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class BillCostItem implements Serializable {
    @ApiModelProperty(value = "费用项id")
    private Integer id;

    @ApiModelProperty(value = "费用类型id")
    private Integer costTypeId;

    @ApiModelProperty(value = "金额")
    private BigDecimal account;

    @DateTimeFormat(pattern="YYYY-MM-dd")
    @ApiModelProperty(value = "账单开始时间")
    private Date startTime;

    @DateTimeFormat(pattern="YYYY-MM-dd")
    @ApiModelProperty(value = "账单结束时间")
    private Date endTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCostTypeId() {
        return costTypeId;
    }

    public void setCostTypeId(Integer costTypeId) {
        this.costTypeId = costTypeId;
    }

    public BigDecimal getAccount() {
        return account;
    }

    public void setAccount(BigDecimal account) {
        this.account = account;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", costTypeId=").append(costTypeId);
        sb.append(", account=").append(account);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}